package training01;

import java.util.Comparator;

public class PukeComparator implements Comparator<Puke> {
    @Override
    public int compare(Puke o1, Puke o2) {
        if(o1.getPointValue() == o2.getPointValue()){
            return o1.getTypeValue() - o2.getTypeValue();
        }else{
            return o1.getPointValue() - o2.getPointValue();
        }
    }
}
